home *** CD-ROM | disk | FTP | other *** search
/ SuperHack / SuperHack CD.bin / CODING / GRAPHICS / VOXRAY.ZIP / PREVSET.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1995-10-19  |  553 b   |  24 lines

  1. #include "ray.h"
  2. #include "globals.h"
  3. #include "prevarr.h"
  4. #include "scrconf.h"
  5.  
  6. BOOL prev_loaded=FALSE;
  7.  
  8. void Setup_Prev_Arrays() {
  9.    Clear_Prev_Arrays();
  10.    prev_colors=(PUCHAR)NewPtr(Get_Phys_Screen_Width() * sizeof (UCHAR));
  11.    win_tops=(PSHORT)NewPtr(Get_Phys_Screen_Width() * sizeof(short));
  12.    win_bottoms=(PSHORT)NewPtr(Get_Phys_Screen_Width() * sizeof(short));
  13.    prev_loaded=TRUE;
  14. }
  15.  
  16. void Clear_Prev_Arrays() {
  17.    if (prev_loaded) {
  18.       DelPtr(prev_colors);
  19.       DelPtr(win_tops);
  20.       DelPtr(win_bottoms);
  21.    }
  22. }
  23.  
  24.